﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MMITWeb.Infrastructure.Abstract
{
    public interface IAuthProvider
    {
        bool Authenticate(string Username, string Password);

        bool Register(string Username, string Password, string Email,string Firstname, string Middlename, string Lastname,
            string Mobile, string Sex,int CountryId, int IdentificationTypeId,string IdentificationNumber,out string strErrorCode);

        void LogOff();

        bool ChangePassword(string Username, string OldPassword, string NewPassword);

        string GetUserEmail(string Username);

        void UpdateUserEmail(string Username, string Email);

        string ResetPassword(string Username, string Email);
    }
}
